package com.myteam.fugaocrm.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.myteam.fugaocrm.modle.FgPartnerProduct;
import com.myteam.fugaocrm.sqldb.mapper.FgPartnerProductMapper;

@Service
public class PartnerProductServiceImpl implements BaseService {

	@Resource protected FgPartnerProductMapper fgPartnerProductMapper;
	
	public List<FgPartnerProduct> all() {
		return fgPartnerProductMapper.all();
	}
	
	/**
	 * 根据供应商公司ID查询全部产品/服务
	 * @param partnerProductId
	 * @return
	 */
	public List<FgPartnerProduct> selectList(Integer partnerCompanyId) {
		return fgPartnerProductMapper.selectList(partnerCompanyId);
	}
	
	public void deleteOne(Integer partnerProductId) {
		fgPartnerProductMapper.deleteOne(partnerProductId);
	}
	
	public void insert(Map<String, Object> params) {
		fgPartnerProductMapper.insert(params);
	}
	
	public void update(Map<String, Object> params) {
		fgPartnerProductMapper.update(params);
	}
	
}
